package com.qianbei.user.applymaster;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 用户基本信息
 *
 * Created by user on 16/5/10.
 */
public class UserInfoModel implements Parcelable{

    private String name;
    private int sex;
    private String country;
    private String city;
    private String phone;
    private String email;
    private String post;
    private String company;

    public UserInfoModel() {
    }

    protected UserInfoModel(Parcel in) {
        name = in.readString();
        sex = in.readInt();
        country = in.readString();
        city = in.readString();
        phone = in.readString();
        email = in.readString();
        post = in.readString();
        company = in.readString();
    }

    public static final Creator<UserInfoModel> CREATOR = new Creator<UserInfoModel>() {
        @Override
        public UserInfoModel createFromParcel(Parcel in) {
            return new UserInfoModel(in);
        }

        @Override
        public UserInfoModel[] newArray(int size) {
            return new UserInfoModel[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeInt(sex);
        dest.writeString(country);
        dest.writeString(city);
        dest.writeString(phone);
        dest.writeString(email);
        dest.writeString(post);
        dest.writeString(company);
    }
}
